luci-mod-network: don't hide "Device" on protocol change
authorRafał Miłecki <[email protected]>
Thu, 20 May 2021 12:00:36 +0000 (14:00 +0200)
committerRafał Miłecki <[email protected]>
Thu, 27 May 2021 10:19:08 +0000 (12:19 +0200)
commita1b62732b817be369f9ce183aef5f581624b78c7
treef8704caed82a4536b3b9de648b53b00950bcab82
parent5356e3fa25225c0b935b23d82b82e4bf75248645
luci-mod-network: don't hide "Device" on protocol change

Device ("ifname" UCI option) doesn't depend on protocol so there is no
need to hide / reset it on protocol change.

While at it drop names of two removed inputs (dead code).

Fixes: ec020cee0c44 ("luci-mod-network: drop support for *editing* legacy bridges")
Signed-off-by: Rafał Miłecki <[email protected]>
(cherry picked from commit 907b4222f70b3351d590d8a2e35c21a4ae07db8d)
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js